<?php slot('news_carousel') ?>
<?php if($news): ?>
<div class="small_mbox">
	<div class="s_mb_pic_content">
	  <div class="s_mb_pic">
<!-- start of jcarousel -->
		<div id="wrap">
		  <div id="slides">
			<ul id="mycarousel" class="jcarousel-skin-anima-homepage">
				<?php foreach($news as $item): ?>
				<?php
					$link = get_component('linker', 'newsItem', array('new' => $item));
				?>
				<li>
					<div>
						<a href="<?php echo $link ?>"><img src="<?php echo @myPicture::getInstance($item['picture'])->thumbnail(543,302,'center')->url()?>" alt="" /></a>
						<p class="jFlowp_small"><a href="<?php echo $link ?>" class="desc_title" style="color: <?php echo CustomizationHelper::dark($section) ?>; margin-top:-5px; font-size: 12px"><?php echo $item['name'] ?></a><span class="desc_text" style="font-size: 10px"><?php echo $item['description'] ?></span></p>
					</div>
				</li>
				<?php endforeach; ?>
			</ul>
			<div style="position:relative;top:-300px">
				<p class="dots_carrier">
					<?php foreach($news as $index=> $item): ?>
					<span class="dot activedot">
						<a href="#"></a>
					</span>
					<?php endforeach; ?>
				</p>
			</div>
		  </div>
			<?php if(count($news) > 1): ?>
			<?php use_stylesheet('/js/carousel/style.css') ?>
			<?php use_javascript('/js/carousel/jquery.jcarousel.min.js') ?>
			<?php use_javascript('/js/carousel/init.js') ?>
			<?php use_stylesheet('/anima/carousel/skins/anima/sectionpage_carousel.css') ?>
			<div id="prevNext" style="margin-bottom: -28px;"> <img src="/anima/images/prev_small.png" alt="Eelmine" class="jFlowPrev" style="top: -30px;" /> <img src="/anima/images/next_small.png" alt="Järgmine" class="jFlowNext" style="top: -30px; left: 510px;" /> </div>
			<?php endif; ?>
		</div>
<!-- end of jcarousel -->
	</div>
	</div>
	<?php if(isset($welcome) && $welcome && strip_tags($welcome['content'])): ?>
	<div class="bottom_text" style="background-color: <?php echo CustomizationHelper::dark($section) ?>;">
		<span class="txtstyle2" style="color: <?php echo CustomizationHelper::font($section) ?>; font-weight: normal"><?php echo $welcome['title'] ?></span><br />
		<span class="txtstyle3" style="color: <?php echo CustomizationHelper::font($section) ?>;"><?php echo $welcome['description'] ?></span><br />
		<a href="<?php include_component('linker', 'articleLinkBuilder', array('node' => $welcome)) ?>" style="background: url('<?php echo CustomizationHelper::smallarrow($section) ?>') no-repeat right; color: <?php echo CustomizationHelper::font($section) ?>; padding-right: 20px;"><?php echo __('Loe edasi') ?></a>
	</div>
	<?php endif; ?>
</div>
<?php endif; ?>
<?php end_slot() ?>